package com.brainhealth.common.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wll
 */
public enum RoleEnum {
    QING_ZHU(0, "青竹"), USER(1, "用户");
    private final int code;
    private final String info;

    RoleEnum(int code, String info) {
        this.code = code;
        this.info = info;
    }

    public int getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    /**
     * 获取报告编码列表
     *
     * @return
     */
    public static List<Integer> getRoleCodeList() {
        List<Integer> list = new ArrayList<>(3);
        for (RoleEnum roleEnum : RoleEnum.values()) {
            list.add(roleEnum.code);
        }
        return list;
    }
}
